<?php
namespace Core;

require_once __Dir__ . '/../../simpletest/autorun.php';

class TestOfResetUserPassword extends \UnitTestCase 
{
	/**
	* Test a correct update user avatar
	*
	* @reference
	*
	* @requirement
	* @requirement
	*/
    function testCorrectResetUserPassword() 
	{
		$services = new CoreService();
		
		$result = $services->resetUserPassword(USER_TEST_ID);
		
		$this->assertFalse($result->isFailed);
    }
	
	/**
	* Test an invalid update user avatar by user not exist
	*
	* @reference
	*
	* @requirement
	* @requirement
	*/
    function testInvalidResetUserPasswordByUserNotFound() 
	{
		$services = new CoreService();
		
		$result = $services->resetUserPassword(4);
		
		$this->assertTrue($result->isFailed);
    }
}
?>